import { httpGet, httpPost } from "@/utils/request";

/**
 * @name 获取系统配置
 */
export const systemConfigApi = (params) => {
  return httpGet("/api/admin/config", params);
};
/**
 * @name 关于我们-获取公司介绍列表
 */
export const companyIntroListApi = () => {
  return httpGet("/api/admin/company_intro", { page_size: 1000 });
};

/**
 * @name 获取资产配置列表
 */
export const assetConfigApi = (params) => {
  return httpGet("/api/admin/asset_config", params);
};

/**
 * @name 获取资产配置详情
 * @param asset_config_id 资产配置ID
 */
export const assetConfigDetailApi = (params) => {
  return httpGet("/api/admin/asset_config/detail", params);
};

/**
 * @name 获取热门地区
 */
export const hotSpotsApi = (params) => {
  return httpGet("/api/admin/project_area", params);
};

/**
 * @name 获取项目列表
 */
export const projectListApi = (params) => {
  return httpGet("/api/user/project", params);
};
/**
 * @name 项目详情
 * @param project_id 项目ID
 */
export const projectDetailApi = (params) => {
  return httpGet("/api/user/project/detail", params);
};

/**
 * @name 获取项目资讯
 */
export const projectNewsApi = (params) => {
  return httpGet("/api/admin/project_news", params);
};

/**
 * @name 获取项目资讯详情
 * @param project_news_id
 */
export const projectNewsDetailApi = (params) => {
  return httpGet("/api/admin/project_news/detail", params);
};
